//var wDiv = new waitDiv();

function showElement(id) {
	document.getElementById(id).style.display = 'block';
}

function hideElement(id) {
	document.getElementById(id).style.display = 'none';
}

function removeDOMElement(id1, id2) {
	var el = document.getElementById(id1);
	var i = 0;
	for (i = 0; i < el.childNodes.length; i++) {
			if (el.childNodes[i].id == id2) {
				el.removeChild( el.childNodes[i] );
				break;
			}
	}
}

function insertDOMElement(id, child) {
	var el = document.getElementById(id);
	el.insertBefore(child, el.firstChild);
}

function appendDOMElement(id, child) {
	var el = document.getElementById(id);
	el.appendChild(child);
}


function getTimeStamp() {
	var now = new Date();
	var stamp = now.getYear()+'.'+now.getMonth()+'.'+now.getDay()+'.'+now.getHours()+'.'+now.getMinutes()+'.'+now.getSeconds();
	return stamp;
}

